<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>canvas时钟</title>
  <style type="text/css">
    *{
      padding: 0;
      margin: 0;
    }
    .wrap{
      margin: 100px auto;
      width: 50%;
      text-align: center;
    }
    .wrap #date,
    .wrap #time,
    .wrap #week{
      float: left;
      margin: 3px 15px;
    }
    .wrap #date,
    .wrap #week{
      font-size: 18px;
      font-weight: bold;
    }
    .wrap .con{
      width: 50%;
      height: 50px;
      line-height: 50px;
      margin-bottom: 50px;
      margin-left: 25%;
    }
    #canvas{
      /*border: 1px solid green;*/
    }
  </style>
</head>
<body>
  <div class="wrap">
    <div class="con">
      <span id="date">a</span>
      <h1 id="time">b</h1>
      <span id="week">c</span>
    </div>
    <canvas id="canvas" width="300" height="300"></canvas>
  </div>
  <script type="text/javascript" src="click.js"></script>
</body>
</html>
